package org.esionwong.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.esionwong.domain.User;
import org.esionwong.mapper.db1.UserMapper;
import org.esionwong.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public IPage<User> page(Integer page, Integer pageSize) {
        //分页参数
        Page<User> rowPage = new Page<>(page, pageSize);

        rowPage = this.baseMapper.selectPage(rowPage);
        return rowPage;

    }
}
